<?php


namespace app\admin\controller;


use app\BaseController;
use app\Request;
use GatewayClient\Gateway;

class Socket extends BaseController
{


    public function init(Request $request){

        $this->bind($request);
    }

    private function bind($request){
        $id = $this->auth->id;
        $client_id = intval($request->param('client_id'));
        Gateway::bindUid($client_id,$id);
    }
}